import request from '@/service/request'

/* 登录 */
const login = (params) => {
  return request.post('/sys/login/userLogin', params)
}

/* 获取用户个人信息 */
const getUserInfo = (params) => {
  return request.get('/sys/login/getUserInfo')
}

// 获取角色菜单
const getRoleMenu = (params) => {
  return request.get('/sys/login/getRoleMenu')
}

export {
  login,
  getUserInfo,
  getRoleMenu
}
